package com.zjuee.base.model.common.auth;

import com.alibaba.fastjson.annotation.JSONField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.zjuee.base.model.Base;
import lombok.*;
import lombok.experimental.Accessors;

import java.util.Date;

/**
 * @author wu liang
 * @since 1.0
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Accessors(chain = true)
@ToString(callSuper = true)
@EqualsAndHashCode(callSuper = true)
@TableName(value = "sys_organization")
public class Org extends Base {

    /*组织机构名称*/
    private String orgName;

    /*组织机构类型*/
    private Byte orgType;

    /*业务外键，根据类型的不同，关联的表也不同*/
    private Long orgBusinessId;

    /*备注*/
    private String remark;

    @JSONField(serialize = false)
    private Date gmtCreate;

    @JSONField(serialize = false)
    private Date gmtModify;

    @JSONField(serialize = false)
    private Long createId;

    @JSONField(serialize = false)
    private Long modifyId;

    private String levelCode;

    private Byte levelAuthority;
}
